from PIL import Image, ImageDraw, ImageFont

imageFile = "G:\\files\imgs\\girl1.jpg"
imageInfo = Image.open(imageFile)
fontOne = ImageFont.truetype("‪C:\Windows\Fonts\simhei.ttf", 100)
fontTwo = ImageFont.truetype("‪C:\Windows\Fonts\simhei.ttf", 100)

draw = ImageDraw.Draw(imageInfo)
print(imageInfo.size)
draw.text((imageInfo.size[0] / 2, imageInfo.size[1] / 2), u"耀老板，这是你想要的吗", fill=(255, 0, 0), font=fontOne)
# draw.text((imageInfo.size[0] / 2, imageInfo.size[1] / 2 + 300), u"等会去看电影", fill=(134, 153, 153), font=fontOne)
# imageInfo.show()
imageInfo.save(r"./test.jpg")
print("success")
